<%@ page language="java" import="java.util.*;import java.text.SimpleDateFormat;import java.util.Date;" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Date date = new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>

<title>数据字典</title>
<link rel="stylesheet" type="text/css" href="css/header.css"/>
<script language="javascript" type="text/javascript" src="js/sousuo.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/table.js"></script>
</head>
<body>
<div id="all">
  <div id="banner">
    <h1>数据字典查询管理系统</h1>
  </div>
  <div id="nav">
    <ul>
      <li class="inactive"><a href="#">用户管理</a></li>
      <li class="inactive"><a href="#">接口查询</a></li>
      <li class="inactive"><a href="#">表关系查询</a></li>
      <li class="inactive"><a href="/ODSManager/Function_Load_data">数据导入</a></li>
      <li class="inactive" id="inactive_now"><a href="/ODSManager/Function_ODSsearch">ODS表查询</a></li>
      <li class="inactive"><a href="/ODSManager/Function_DataIndex">数据索引</a></li>
      <li class="inactive"><a href="#">新建分类</a></li>
    </ul>
  </div>
  <div id="main">
    <div id="welcome">欢迎你回来,${cname}!&nbsp;&nbsp;&nbsp;现在时间: <jsp:expression>df.format(date) </jsp:expression></div>
    <div id="adminop">
      <ul>
        <li><a href="/ODSManager/user_logout">退出管理</a></li>
        <li><a href="#">站点首页</a></li>
      </ul>
    </div>
  </div>
</div>
<div id="body">
<div class="sousuo">
  <div id="sousuo_putong"> 
  <form method="post" action="/ODSManager/ODS_Search">
    关键字：<input type="text" name="keyword2" id="textfield" />
    <input type="submit" name="submit" id="button" value="搜索" />
    <a href="#" id="sousuo_gaoji_button" >高级搜索</a></form>
  </div>
   <div id="sousuo_gaoji" style="display: none;"> ODS表名：
    <input type="text" name="textfield" id="textfield" />
     接口编号：
    <input type="text" name="textfield" id="textfield" />
     数据来源：
    <input type="text" name="textfield" id="textfield" />
     对端系统：
    <input type="text" name="textfield" id="textfield" />
    <input type="button" name="button" id="button" value="搜索" />
    <a href="#" id="sousuo_putong_button">普通搜索</a>
  </div>
  </div>
 <div class="table">
    <table id="ibody" width="99%" border="0" align="left" cellPadding=3 cellSpacing=1 bgColor="#CCCCCC">
    <tr align="center">
        <th>ODSID</th>
        <th>ODS表名</th>
        <th>接口编号</th>
        <th>是否可用</th>
        <th>数据来源</th>
        <th>对端编号</th>
        <th>说明</th>
        <th width="70">操作</th>
        <th width="60">字段信息</th>
    </tr>
    <s:set name="first" value="0"></s:set>
	<s:set name="end" value="(#session.AllODSField.list1.size()-1)"></s:set>
	<s:iterator begin="#first" end="#end" status="indexNo">
    <tr> 
    <td><s:property value="(#session.AllODSField.list1[#indexNo.getIndex()].odsId)"/></td>
    <td><s:property value="(#session.AllODSField.list1[#indexNo.getIndex()].odsTableName)"/></td>
    <td><s:property value="(#session.AllODSField.list1[#indexNo.getIndex()].odsInterfaceId)"/></td>
    <td><s:property value=""/></td>
	<td><s:property value="(#session.AllODSField.list1[#indexNo.getIndex()].dataSourceId)"/></td>
	<td><s:property value="(#session.AllODSField.list1[#indexNo.getIndex()].oppositeTerminal)"/></td>
	<td><s:property value="(#session.AllODSField.list1[#indexNo.getIndex()].odsSpecification)"/></td>
    <td><a href="/ODSManager/ChangeODSInfo_Search?odsTableName=<s:property value='(#session.AllODSField.list1[#indexNo.getIndex()].odsTableName)'/>">修改</a>/<a href="/ODSManager/DelODS_Search?odsTableName=<s:property value='(#session.AllODSField.list1[#indexNo.getIndex()].odsTableName)'/>">删除</a></td>
    <td><a href="/ODSManager/ODS_Search?flag=2&keyword1=<s:property value='(#session.AllODSField.keyword1)'/>&keyword2=<s:property value='(#session.AllODSField.list1[#indexNo.getIndex()].odsInterfaceId)'/>">字段信息</a></td>
    </tr>
    </s:iterator>
    </table>
  </div>
</div>
</body>
</html>
